﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;

namespace FutureApp.Shop.Dto
{
    /// <summary>
    /// 商品特征属性DTO
    /// </summary>
    [AutoMapFrom(typeof(GoodsAttribute))]
    public class GoodsAttributeEntityDto : EntityDto<Guid>
    {
        /// <summary>
        /// 商品特征属性名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 商品特征属性可选枚举值
        /// </summary>
        public ICollection<GoodsAttributeValueEntityDto> Values { get; set; }
    }

    /// <summary>
    /// 商品特征属性值
    /// </summary>
    [AutoMapFrom(typeof(GoodsAttributeValue))]
    public class GoodsAttributeValueEntityDto : EntityDto<Guid>
    {
        /// <summary>
        /// 特征属性值
        /// </summary>
        public string Value { get; set; }
    }
}
